import { get, post } from '@/utils/axiosMethods'

// 查询树结构
export function getTreeList(tableName) {
  return get({ url: `/category/getTreeList/${tableName}` })
}

// 新增或修改节点
export function addOrUpdateCategory(data) {
  return post({ url: '/category/addOrUpdateCategory', data })
}

// 删除节点
export function removeCategory(id) {
  return get({ url: `/category/removeCategory/${id}` })
}

